<?php
include './includes/instances.php';

if ($stranka->GetMenuMain()->GetActiveItem()->GetLink() == 'kontakt') {
    include './includes/mail.php';
    Send($stranka->GetMailPrefix(), $stranka->GetEmail(),
            $_POST['predmet'], $_POST['email'], $_POST['spam'], $_POST['zprava']);
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License

Name       : Condition 
Description: A two-column, fixed-width design for 1024x768 screen resolutions.
Version    : 1.0
Released   : 20100103

-->
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title><?php echo $stranka->GetMenuMain()->GetActiveItem()->GetTitle(); ?></title>
        <meta name="keywords" content="<?php echo $stranka->GetMenuMain()->GetActiveItem()->GetKeywords(); ?>" />
        <meta name="description" content="<?php echo $stranka->GetMenuMain()->GetActiveItem()->GetDescription(); ?>" />
        <meta name="copyright" content="<?php echo $stranka->GetCopyright(0); ?>" />
        <meta name="author" content="<?php echo $stranka->GetAuthor(0); ?>" />
        <meta name="robots" content="index, follow" />
        <meta name="google-site-verification" content="<?php echo $stranka->GetGoogleSV(); ?>" />
        <?php
        if ($stranka->GetMenuMain()->GetActiveItemId() == 0)
            echo '<meta http-equiv="refresh" content="1;url=http://www.herni-konzole.eu/">';
        ?>
        <link href="./css/style.css" rel="stylesheet" type="text/css" media="screen" />
        <link href="./css/table.css" rel="stylesheet" type="text/css" media="screen" />
    </head>
    <body>
        <div id="wrapper">
            <div id="logo">
                <p><a href="/">Herní konzole</a></p>
            </div>
            <hr />
            <!-- end #logo -->
            <div id="header">
                <div id="menu">
                    <ul>
                        <?php $stranka->GetMenuMain()->ShowItems(array(0, 1, 2, 3, 4, 5, 6)); //  ?>
                    </ul>
                </div>
                <!-- end #menu -->
                <!--		<div id="search">
			<form method="get" action="">
				<fieldset>
                                                <input type="text" name="s" id="search-text" size="15" />
                                                <input type="submit" id="search-submit" value="GO" />
				</fieldset>
			</form>
		</div>-->
                <!-- end #search -->
            </div>
            <!-- end #header -->
            <!-- end #header-wrapper -->
            <div id="page">
                <div id="page-bgtop">
                    <div id="content">
                        <div class="post">
                            <h1 class="title"><?php echo $stranka->GetMenuMain()->GetActiveItem()->GetHeadline(); ?></h1>
                <!--                            <p class="meta">Sunday, April 26, 2009 7:27 AM Posted by <a href="#">Someone</a></p>-->
                                    <div class="entry">
                                <?php echo $stranka->GetMenuMain()->GetActiveItem()->GetMainText(); ?>
                            </div>
                        </div>
                    </div>
                    <!-- end #content -->
                    <div id="sidebar">
                        <ul>
                            <li>
                                <h2>Obsah webu</h2>
                                <ul>
                                    <?php $stranka->GetMenuMain()->ShowAllItems(); ?>
                                </ul>
                            </li>
                            <li>
                                <h2>Doporučujeme</h2>
                                <ul>
                                    <?php $stranka->GetMenuOthers(0)->ShowAllItems(); ?>
                                    <!--<li><a href="#"></a><a href="#">Nec metus sed donec</a></li>
                                    						<li><a href="#">Magna lacus bibendum mauris</a></li>
						<li><a href="#">Velit semper nisi molestie</a></li>
						<li><a href="#">Eget tempor eget nonummy</a></li>
						<li><a href="#">Nec metus sed donec</a></li>
						<li><a href="#"></a><a href="#">Nec metus sed donec</a></li>
						<li><a href="#">Magna lacus bibendum mauris</a></li>
						<li><a href="#">Velit semper nisi molestie</a></li>-->
                                </ul>
                            </li>
                        </ul>
                    </div>
                    <!-- end #sidebar -->
                    <div style="clear: both;">&nbsp;</div>
                </div>
            </div>
            <!-- end #page -->
            <div id="footer-bgcontent">
                <div id="footer">
                    <p>Copyright (c) 2011 herni-konzole.eu. Všechna práva vyhrazena. Design by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.</p>
                </div>
            </div>
            <!-- end #footer -->
        </div>
    </body>
</html>
